package com.xbongbong.pro.statistic.model.impl;

import com.xbongbong.bi.domain.DataSetConfigDao;
import com.xbongbong.pro.domain.entity.DataSetConfigEntity;
import com.xbongbong.pro.statistic.model.DataSetConfigModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author bomfish
 */
@Service("dataSetConfigModel")
public class DataSetConfigModelImpl implements DataSetConfigModel {
    @Resource
    private DataSetConfigDao dataSetConfigDao;

    @Override
    public Integer insert(DataSetConfigEntity entity) {
        return dataSetConfigDao.insert(entity);
    }

    @Override
    public void insertBatch(List<DataSetConfigEntity> list) {
        dataSetConfigDao.insertBatch(list);
    }

    @Override
    public List<DataSetConfigEntity> findEntitys(Map<String, Object> param) {
        return dataSetConfigDao.findEntitys(param);
    }

    @Override
    public Integer getEntitysCount(Map<String, Object> param) {
        return dataSetConfigDao.getEntitysCount(param);
    }

    @Override
    public Integer update(DataSetConfigEntity entity) {
        return dataSetConfigDao.update(entity);
    }

    @Override
    public DataSetConfigEntity getByKey(Long key, String corpid) {
        return dataSetConfigDao.getByKey(key, corpid);
    }

    @Override
    public DataSetConfigEntity getByDataSetId(Long setId, String corpid) {
        return dataSetConfigDao.getByDataSetId(setId, corpid);
    }

    @Override
    public List findEntitysWithoutSub(Map<String, Object> param) {
        return dataSetConfigDao.findEntitys(param);
    }
}
